<?php

class Home extends MY_Controller {
	public function __construct(){
		parent::__construct();
		$this->theme->set_module('home');
	}

	public function index(){
		$this->load->language('test', $this->config->item('language'));
		//$this->load->config('home/config');
		//var_dump($this->config->item('test'));
		//echo lang('test.title');
		//var_dump($this->get_assets());
		//echo $this->parser->parse('more', array('test' => 'data<br/>'), true);
		//echo modules::run('abc/xyz');
		//var_dump(modules::run('VisitCount/get'));
		//var_dump(modules::run('VisitCount/setVisit', 'members'));
		//var_dump(modules::run('VisitCount/get'));
		$this->theme->set_template('temp');
		$slide = modules::run('Slides/index');
		//$this->theme->set_css(base_url().$this->get_assets('css/style.css'));

		$this->theme->set_widget('more', 'content', array('test' => lang('test.title')));
		$this->theme->set_widget(null, 'slide', $slide);
		$this->theme->render();
	}

	public function admin()
	{
		
	}
}